package com.geek.javase.IfWork;

import java.util.Scanner;

/**
 * @author chenshupeng
 * @date 2025/9/2
 * @desc TODO
 **/

public class Q2 {

    public static float Bargain(float ticket, float day){

        if(day>=1.01&&day<=1.03)
        {
            return ticket;
        }
        if(day>=10.01&&day<=10.07)
        {
            return ticket;
        }
        if(day>=5.01&&day<=5.03)
        {
            return ticket;
        }

        return (float) (ticket*0.8);
    }
    public static void main(String[] args) {

    float ticket=100;
        Scanner sc=new Scanner(System.in);
        float day=sc.nextFloat();//输入日期
        float price=Bargain(ticket,day);
        System.out.println(price);
    }
}
